﻿using System;
using System.Web.Security;
using Game.Utilities.Config;
using Game.Utilities.Session;

namespace Web.Server
{


    public partial class logout : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (AccountSession.AccountID > 0)
            {
                FormsAuthentication.SignOut();
                Session.Abandon();
                Response.Redirect(VTCeBank.SSO.Utils.SSOHelper.URLLogout);
                return;
            }
            Response.Redirect(Config.ApplicationUrl);  
        }
    }
}